-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate "Add Account (advanced)" in WelcomeLogIn.swift #1246
Integrate "Add Account (advanced)" in WelcomeLogIn.swift #1246
Conversation
lissine0
commented
Sep 21, 2024
I don't like this. the welcome login screen should be easy to use for non-techies and advanced options should be hidden in a separate screen for tech savy people to use. |
That's exactly how it is in this PR. The screenshots above are what's shown when What this PR does, is basing |
Ah okay, that's okay. But, for the advanced view, could you remove the logo and change the explanatory text at the top to something explaining that this is an advanced expert account creation menu? |
We should make the direct tls switch only accessible (e.g. enabled) if the hostname or port fields contain something... |
I'd prefer the third one. @FriedrichAltheide @matthewrfennell what do you prefer?
I'd say yes. |
I agree |
okay, third one it is :) |
02cb0bf
to
4be30fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost mergeable :)
Monal/Classes/WelcomeLogIn.swift
Outdated
} | ||
} | ||
|
||
Toggle(isOn: $allowPlainAuth){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add a list of domains for which this toggle isn't allowed to be turned on? that list should currently only contain "conversations.im", but more might be added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lissine0 this seems still to be missing, right?
4be30fe
to
1b6ed45
Compare
Monal/Classes/WelcomeLogIn.swift
Outdated
} | ||
} | ||
|
||
Toggle(isOn: $allowPlainAuth){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lissine0 this seems still to be missing, right?
9d3f65b
to
c5f9c72
Compare
1b6ed45
to
50a12bd
Compare
I made some other changes aside from those you asked for. Here's a demo of them: Add_acconut_advanced.mp4The reason why I did this is: the hardcoded port is only used in connection if a hardcoded server is set. Also, in the old UI, 5222 is set by default as hardcoded port, even when doing a normal account adding. That can confuse users into thinking that StartTLS is used because of that value. And BTW, you were correct, the old add account (advanced) did indeed disallow plain auth for conversations.im |
720ddcc
to
2b86ae4
Compare
2b86ae4
to
c734d55
Compare
NSArray* params = @[ | ||
server == nil ? @"" : server, | ||
port == nil ? @"5222" : port, | ||
nilDefault(server, @""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that you are using the nilDefault
macro :)